package com.chuhe.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

/**
 * <p>
 * 会话信息
 * </p>
 *
 * @author 张楚河
 * @since 2025-05-21
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("chat_session")
@AllArgsConstructor
@NoArgsConstructor
public class ChatSession implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 会话ID
     */
    @TableId("session_id")
    private String sessionId;

    /**
     * 最后接受的消息
     */
    @TableField("last_message")
    private String lastMessage;

    /**
     * 最后接受消息时间毫秒
     */
    @TableField("last_receive_time")
    private Long lastReceiveTime;


}
